//
//  ZMProfileViewController.m
//  基本框架
//
//  Created by runone02 on 2018/7/3.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "ZMProfileViewController.h"
#import "ZMProfileView.h"
@interface ZMProfileViewController ()
@property (nonatomic, strong) ZMProfileView *profileView;
@end

@implementation ZMProfileViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNavView];
    [self setUpRrofileView];
}

- (void)setupNavView{
    [super setupNavView];
    [self.navView.leftButton setImage:backArrowIcon forState:UIControlStateNormal];
    
    [self.navView.centerButton setTitle:@"个人资料" forState:UIControlStateNormal];
}


- (void) setUpRrofileView{
    self.profileView = [[ZMProfileView alloc]init];
    [self.view addSubview:self.profileView];
    [self.profileView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.navView.mas_bottom);
        make.left.right.mas_equalTo(self.view);
        make.height.mas_equalTo(SCREEN_HEIGHT - self.navView.height);
    }];
    [self.view insertSubview:self.profileView belowSubview:self.navView];
}
@end
